<!DOCTYPE html>
<html lang="en">
<style>
    h1{
        color: red;
        color: #ff0000;
    }

    #d1{
        width:300px;
        height:200px;
        background-color: purple;
        /*设置背景图片*/
        background-image:url("../fbb.jpg");
        /*设置背景图片尺寸*/
        background-size: 150px 100px;
        /*    设置禁止重复*/
        background-repeat: no-repeat ;
        background-position: 50% 50%;
    }

    #d2{
        width:611px;
        height:376px;
        background-color: #e8e8e8;
        /*设置背景图片*/
        background-image: url("http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img1.png");
        /*禁止背景图片重复*/
        background-repeat: no-repeat;
        /*设置背景图片尺寸*/
        background-size: 318px 319px;
        /*设置背景图片的位置*/
        background-position: 90% 90%;

    }

    #d3{
        width: 375px;
        height: 376px;
        background-color: #e8e8e8;
        background-image: url("http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img2.png");
        background-repeat: no-repeat;
        background-size: 292px 332px;
        background-position: 90% 90%;
    }



</style>
<head>
    <meta charset="UTF-8">
    <title>颜色背景</title>

</head>
<body>
<h1>颜色测试</h1>
<div id="d1"></div>
<div id="d2"></div>
<div id="d3"></div>
<span id="s1"></span>


</body>
</html>